package com.aidex.business.domain;

import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.aidex.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 采购单信息对象 bus_purchase
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-20
 */
@Data
public class BusPurchase extends BaseEntity<BusPurchase>
{
    private static final long serialVersionUID = 1L;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @LogField
    @FieldRemark(name = "商品名称",field = "goodsname")
    private String goodsname;

    /** 商品id */
    private String goodsid;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    @LogField
    @FieldRemark(name = "仓库名称",field = "warehousename")
    private String warehousename;

    /** 仓库id */
    private String warehouseid;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    @LogField
    @FieldRemark(name = "供应商名称",field = "suppliername")
    private String suppliername;

    /** 供应商id */
    private String supplierid;

    /** 采购数量 */
    @Excel(name = "采购数量")
    @NotBlank(message = "采购数量不允许为空")
    @LogField
    @FieldRemark(name = "采购数量",field = "count")
    private String count;

    /** 采购总金额 */
    @Excel(name = "采购总金额")
    @NotBlank(message = "采购总金额不允许为空")
    @LogField
    @FieldRemark(name = "采购总金额",field = "amount")
    private String amount;

    /** 采购时间 */
    @Excel(name = "采购时间")
    @NotBlank(message = "采购时间不允许为空")
    @LogField
    @FieldRemark(name = "采购时间",field = "purchaseTime")
    private String purchaseTime;

    public void setGoodsname(String goodsname) 
    {
        this.goodsname = goodsname;
    }

    public String getGoodsname() 
    {
        return goodsname;
    }

    public void setGoodsid(String goodsid) 
    {
        this.goodsid = goodsid;
    }

    public String getGoodsid() 
    {
        return goodsid;
    }

    public void setWarehousename(String warehousename) 
    {
        this.warehousename = warehousename;
    }

    public String getWarehousename() 
    {
        return warehousename;
    }

    public void setWarehouseid(String warehouseid) 
    {
        this.warehouseid = warehouseid;
    }

    public String getWarehouseid() 
    {
        return warehouseid;
    }

    public void setSuppliername(String suppliername) 
    {
        this.suppliername = suppliername;
    }

    public String getSuppliername() 
    {
        return suppliername;
    }

    public void setSupplierid(String supplierid) 
    {
        this.supplierid = supplierid;
    }

    public String getSupplierid() 
    {
        return supplierid;
    }

    public void setCount(String count) 
    {
        this.count = count;
    }

    public String getCount() 
    {
        return count;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    public void setPurchaseTime(String purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public String getPurchaseTime() 
    {
        return purchaseTime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsname", getGoodsname())
            .append("goodsid", getGoodsid())
            .append("warehousename", getWarehousename())
            .append("warehouseid", getWarehouseid())
            .append("suppliername", getSuppliername())
            .append("supplierid", getSupplierid())
            .append("count", getCount())
            .append("amount", getAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
